package com.example.mybatisplus.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    @RequestMapping("/404")
    public String console(){
        return "/page/error";
    }

    @RequestMapping("/auto")
    public String auto(){
        return "/views/component/table/auto";
    }

    @RequestMapping("/login")
    public String login(){
        return "/modular/login-3";
    }

    @RequestMapping("/register")
    public String register(){
        return "/modular/login-1";
    }

    @RequestMapping("/welcome1")
    public String welcome1(){
        return "/page/welcome-1";
    }

    @RequestMapping("/welcome2")
    public String welcome2(){
        return "/page/welcome-2";
    }

    @RequestMapping("/welcome3")
    public String welcome3(){
        return "/page/welcome-3";
    }

    @RequestMapping("/user_list_table")
    public String userListTable(){
        return "/page/table";
    }

    @RequestMapping("/user_list_add")
    public String userlistadd(){
        return "/page/add";
    }

    @RequestMapping("/user_list_edit")
    public String userlistedit(){
        return "/page/edit";
    }

    // 展示管理员查询列表
    @RequestMapping("/situlist")
    public String situlist(){
        return "/page/situlist";
    }
}
